﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebServiceKFC.ThanhVienF
{
    public abstract class ThanhVienDTO
    {
        protected int _theID;

        public int TheID
        {
            get { return _theID; }
            set { _theID = value; }
        }

        protected int _diem;

        public int Diem
        {
            get { return _diem; }
            set { _diem = value; }
        }

        protected int _phanTramGiamGia;

        public int PhanTramGiamGia
        {
            get { return _phanTramGiamGia; }
            set { _phanTramGiamGia = value; }
        }

        public virtual int TinhTien(int tienHoaDonLucChuaGiamGia)
        {
            return tienHoaDonLucChuaGiamGia;
        }

        public virtual void TangDiem(int tienDaTinhXong)
        { }

        public SafeThanhVienDTO GetSafeInfo()
        {
            SafeThanhVienDTO kq = new SafeThanhVienDTO();
            kq.Attach(this);
            return kq;
        }
    }
}